<section id="content">

    <div class="page page-fullwidth-layout">

        <div class="pageheader">

            <div class="page-bar">

                <ul class="page-breadcrumb">
                    <li>
                        <a href="{:url('/admin')}"><i class="fa fa-home"></i> 起始页</a>
                    </li>
                    <li>
                        <a href="{:url($data.module_url)}">{$data.module_name}</a>
                    </li>
                    <li>
                        拍品详情
                    </li>
                </ul>
            </div>
        </div>
        <div class="pagecontent">

            <div class="add-nav">
                <!-- row -->
                <div class="row">
                    <!-- col -->
                    <div class="col-md-12">
                        <!-- tile -->
                        <section class="tile">

                            <div class="tile-body">

                                <form role="form" enctype="multipart/form-data" action=" " method="post">

                                    <table class="table table-bordered">
                                        <span class="controls pull-right">返回
                                            <a href="{:url($data.module_url)}" class="btn btn-ef btn-ef-1 btn-ef-1-default btn-ef-1a btn-rounded-20 mr-5" data-toggle="tooltip" title="返回"><i class="fa fa-chevron-left" aria-hidden="true"></i></a>
                                        </span>
                                        <thead>
                                        </thead>
                                        <tbody>
                                        <tr>

                                            <th>微信头像:</th>
                                            <td colspan="3">
                                                <img src="{$goodsDetail.head_pic}" width="60"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th style="width:10%">微信昵称:</th>
                                            <td>{$goodsDetail.nickname}</td>
                                            <th style="width:10%">客户电话:</th>
                                            <td>{$goodsDetail.mobile}</td>

                                        </tr>
                                        <tr>
                                            <th>商品名称:</th>
                                            <td>{$goodsDetail.goods_name}</td>
                                            <th>商品价格:</th>
                                            <td>{$goodsDetail.shop_price}</td>
                                        </tr>
                                        <tr>
                                            <th>上架时间:</th>
                                            <td>{$goodsDetail.upload_time|date='Y-m-d H:i:s',###}</td>
                                            <th>下架时间:</th>
                                            <td>{$goodsDetail.endTime|date='Y-m-d H:i:s',###}</td>
                                        </tr>
                                        <tr>
                                            <th>点击量:</th>
                                            <td>{$goodsDetail.click_count}</td>
                                            <th>距结束时间:</th>
                                            <td><p class="endtime showtime" value="{$goodsDetail.endTime}" style="color: #ff1910;font-weight: bold"></p></td>
                                        </tr>
                                        <tr>
                                            <th>商品描述:</th>
                                            <td colspan="3">
                                                <textarea rows="3" cols="100">{$goodsDetail.goods_content}</textarea>
                                            </td>

                                        </tr>
                                        <tr style="height: 200px">
                                            <th>商品图片:</th>
                                            <td colspan="3">
                                                {volist name='goods_images' id='list'}
                                                <img src="{$list.image_url}" width="150" height="150"/>
                                                {/volist}
                                            </td>

                                        </tr>
                                        </tbody>
                                    </table>
                                </form>
                                <p align="center" style="margin-top: 30px"><a href="{:url($data.module_url)}" class="btn btn-ef btn-ef-1 btn-ef-1-default btn-ef-1a btn-rounded-20 mr-5" data-toggle="tooltip" title="返回"><i class="fa fa-chevron-left" aria-hidden="true"></i></a></p>

                            </div>

                        </section>
                        <!-- /tile -->
                    </div>
                </div>
            </div>
            <script type="text/javascript">
                $('.tuihui').click(function(){
                    history.go(-1);

                });

                var time_current = (new Date()).valueOf(); //获取当前时间
                $(function() {
                    var dateTime = new Date();
                    var difference = dateTime.getTime() - time_current;

                    setInterval(function() {
                            $(".endtime").each(function() {
                                var obj = $(this);
                                var endTime = new Date(parseInt(obj.attr('value')) * 1000);
                                var nowTime = new Date();
                                var nMS = endTime.getTime() - nowTime.getTime() + difference;
                                var myD = Math.floor(nMS / (1000 * 60 * 60 * 24));
                                var myH = Math.floor(nMS / (1000 * 60 * 60)) % 24;
                                var myM = Math.floor(nMS / (1000 * 60)) % 60;
                                var myS = Math.floor(nMS / 1000) % 60;
                                var myMS = Math.floor(nMS / 100) % 10;
                                if (myD >= 0) {
                                    var str = myD + "天" + myH + "小时" + myM + "分" + myS + "." + myMS + "秒";
                                } else {
                                    var str = "已结束！";
                                }
                                obj.html(str);
                            });
                        },
                        100);
                });

            </script>

        </div>

    </div>

</section>
<!--/ CONTENT -->